import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import Antd from 'ant-design-vue'
import router from '@/router'

import SvgIcon from '@/components/svg-icon.vue'

import 'virtual:svg-icons-register'

import './style/index.css'
import 'ant-design-vue/es/message/style/css'
import 'ant-design-vue/es/notification/style/css'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

app.use(pinia)
app.use(Antd)
app.use(router)

app.component('svg-icon', SvgIcon)

app.mount('#app')
